package com.msb.service.impl;

import com.msb.mapper.BookMapper;
import com.msb.service.BookService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

//业务层实现类
@Service  //创建业务层对象
public class BookServiceimpl implements BookService {
    @Autowired //创建数据库链接层的对象（为数据库连接层调用），注入数据库里的内容并返回数据库连接层的结果到业务层
private BookMapper bookmapper;

    public List findAllbooks() {
        return bookmapper.selectAllbooks();
    }
}
